Skip to content

feat(nextjs): Automatically skip middleware requests for tunnel route#16812

Merged
chargome merged 5 commits into
developfrom
cg-next-inject-tunnel-matcher
Jul 7, 2025
Merged

feat(nextjs): Automatically skip middleware requests for tunnel route#16812
chargome merged 5 commits into
developfrom
cg-next-inject-tunnel-matcher

Conversation

@chargome

@chargome chargome commented Jul 4, 2025

Copy link
Copy Markdown
Member

#16626 added the option to generate a randomly generated tunnel route per build. This PR adds functionality for automatically skipping tunnel route requests in the nextjs middleware, as this had to be set up manually by the user until now.

@chargome chargome self-assigned this Jul 4, 2025
Comment thread packages/nextjs/src/common/wrapMiddlewareWithSentry.ts Outdated
@chargome chargome marked this pull request as ready for review July 4, 2025 13:24
Comment thread packages/nextjs/src/common/wrapMiddlewareWithSentry.ts
Comment thread packages/nextjs/src/config/withSentryConfig.ts Outdated
Comment thread packages/nextjs/src/config/withSentryConfig.ts

@mydea mydea left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice! This works in turbopack too?

Co-authored-by: Francesco Gringl-Novy <francesco.novy@sentry.io>
@chargome

chargome commented Jul 7, 2025

Copy link
Copy Markdown
Member Author

This will currently not work in turbopack

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants